package main 

import (
	"fmt"
)
//字符串  双引号 "" 反引号 ``
func main(){

	var str string = "hello,开了"

	var str2 = "test"

	fmt.Println(str,str2)

	//str2[0]='a'

	str3:="test\nabc"

	fmt.Println(str3)

	str4:= `
	package main 

import (
	"fmt"
	"unsafe"
)

func main(){

	var i = false
	var j bool =true

	fmt.Println(i,j)

	fmt.Printf("i=%d,i=%d\n",unsafe.Sizeof(i),unsafe.Sizeof(j))
}
	`
	fmt.Println(str4)


	str5:="china"+"russian"+"test"+
	"bbb"

	fmt.Println(str5)

	//变量的默认值
	var a int 
	var b float32
	var c float64
	var d bool
	var e string 

	fmt.Printf("a=%d,b=%v,c=%v,d=%v,e=%v\n",a,b,c,d,e)
}